var stdin = WScript.StdIn;
var stdout = WScript.StdOut;

while (!stdin.AtEndOfStream)
{
     var str = stdin.ReadLine();
	 var date=new Date();
     stdout.WriteLine('<line time="'+date+'" index="' + (stdin.Line - 1) + '">' + str+'</line>');
}